#!/bin/bash
set -e

if [ ! -n "$CORELINK_ENV_TUYA_SDK_REALPATH" ]; then
    echo "请重新执行 env : source ./common/env.sh"
    exit 1
fi
./common/check_sdk_version.sh
./common/checkout_tuya_sdk.sh

# 切换到SDK 路径
cd $CORELINK_ENV_TUYA_SDK_REALPATH/$CORELINK_ENV_TUYA_SDK_APP_PATH
rm -rf .build/
tos.py clean -f

